package com.xhsj.user.sms.purchase.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhsj.user.sms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 采购订单-退货记录表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-04-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_purchase_subtask_return_record")
public class TbPurchaseSubtaskReturnRecord extends BaseEntity<TbPurchaseSubtaskReturnRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 采购任务id
     */
    @TableField("purchase_task_id")
    private String purchaseTaskId;

    /**
     * 采购订单主表id
     */
    @TableField("purchase_order_id")
    private String purchaseOrderId;

    /**
     * 采购订单子任务清单表id
     */
    @TableField("purchase_subtask_list_id")
    private String purchaseSubtaskListId;

    /**
     * 采购订单子任务表id
     */
    @TableField("purchase_subtask_id")
    private String purchaseSubtaskId;

    /**
     * 退换数量
     */
    @TableField("return_number")
    private Integer returnNumber;

    /**
     * 退货数量
     */
    @TableField("back_number")
    private Integer backNumber;
    /**
     * 退换时间
     */
    @TableField("return_exchange_date")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date returnExchangeDate;

    /**
     * 退换原因
     */
    @TableField("return_exchange_reason")
    private String returnExchangeReason;

    @TableField(exist = false)
    private List<TbPurchaseSubtaskReturnRecordFile> tbPurchaseOrderReturnRecordFileList;

}
